package com.md.drcs.dicom.service.impl;

import com.md.drcs.dicom.dao.HospitalinfoDao;
import com.md.drcs.dicom.entity.HospitalinfoEntity;
import com.md.drcs.dicom.service.HospitalinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("hospitalinfoService")
public class HospitalinfoServiceImpl implements HospitalinfoService {

    @Autowired
    private HospitalinfoDao hospitalinfoDao;

    @Override
    public List<HospitalinfoEntity> findAll() {
        return hospitalinfoDao.selectAll();
    }

    @Override
    public HospitalinfoEntity get(String id) {
        return hospitalinfoDao.selectByPrimaryKey(id);
    }
}
